<div class="full">
    <h1 class="compact">Browse by <strong>Color</strong> <span class="sep">/</span> #<?php echo $this->view->color ?></h1>
</div>

<div class="colors-explore">
    <ul class="color-chips group">
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/660000" style="background-color: #660000" title="#660000">#660000</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/990000" style="background-color: #990000" title="#990000">#990000</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/cc0000" style="background-color: #cc0000" title="#cc0000">#cc0000</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/cc3333" style="background-color: #cc3333" title="#cc3333">#cc3333</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/ea4c88" style="background-color: #ea4c88" title="#ea4c88">#ea4c88</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/993399" style="background-color: #993399" title="#993399">#993399</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/663399" style="background-color: #663399" title="#663399">#663399</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/333399" style="background-color: #333399" title="#333399">#333399</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/0066cc" style="background-color: #0066cc" title="#0066cc">#0066cc</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/0099cc" style="background-color: #0099cc" title="#0099cc">#0099cc</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/66cccc" style="background-color: #66cccc" title="#66cccc">#66cccc</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/77cc33" style="background-color: #77cc33" title="#77cc33">#77cc33</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/669900" style="background-color: #669900" title="#669900">#669900</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/336600" style="background-color: #336600" title="#336600">#336600</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/666600" style="background-color: #666600" title="#666600">#666600</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/999900" style="background-color: #999900" title="#999900">#999900</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/cccc33" style="background-color: #cccc33" title="#cccc33">#cccc33</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/ffff00" style="background-color: #ffff00" title="#ffff00">#ffff00</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/ffcc33" style="background-color: #ffcc33" title="#ffcc33">#ffcc33</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/ff9900" style="background-color: #ff9900" title="#ff9900">#ff9900</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/ff6600" style="background-color: #ff6600" title="#ff6600">#ff6600</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/cc6633" style="background-color: #cc6633" title="#cc6633">#cc6633</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/996633" style="background-color: #996633" title="#996633">#996633</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/663300" style="background-color: #663300" title="#663300">#663300</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/000000" style="background-color: #000000" title="#000000">#000000</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/999999" style="background-color: #999999" title="#999999">#999999</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/cccccc" style="background-color: #cccccc" title="#cccccc">#cccccc</a>
        </li>
        <li class="color">
            <a href="<?php echo $this->baseUrl ?>colors/ffffff" style="background-color: #ffffff" title="#ffffff">#ffffff</a>
        </li>
    </ul>

</div>
<script>
    $('ul.color-chips a').each( function(a) {
        if ($(this).attr('title') == '#<?php echo $this->view->color; ?>')
            $(this).parent().addClass('current')
    });
</script>
<ol class="dribbbles group">
    <?php include "SinglePhoto.php"; ?>
</ol>
<a href="" class="rss">RSS</a>
<div class="page">
    <div class="pagination">
        <a style="<?php if ($this->view->page - 1 == 0)
        echo "display: none;";
    else
        echo "display: initial;";
    ?>" class="previous_page" rel="prev start" href="<?php
           if (isset($this->view->date))
               echo "?date=" . $this->view->date . "&&page=" . ($this->view->page - 1);
           else
               echo "?page=" . ($this->view->page - 1);
           ?>">← Newer</a>
        <a style="<?php
        if ($this->view->date) {
            $page = Status::getColorPhotoCount($this->view->length, $this->view->date);
        } else {
            $page = Status::getColorPhotoCount($this->view->length);
        }
        if ($this->view->page >= $page)
            echo "display: none;";
        else
            echo "display: initial;";
        ?>" class="next_page" rel="next" href="<?php
           if ($this->view->date)
               echo "?date=" . $this->view->date . "&&page=" . ($this->view->page + 1);
           else
               echo "?page=" . ($this->view->page + 1);
           ?>">Older →</a>
    </div>
</div>
